
<div class="title-menu">
    <h2>Quản lý thông tin</h2>
</div>
<nav class="bonus">
    <a href="<?php echo base_url("backend/home/manage");?>"><< Quay lại</a>
</nav>
<article>
    <form method="post" action="">
        <fieldset>
            <ul class="error">
                <?php echo validation_errors(); ?>
                <?php
                if (isset($notice1)) {
                    ?>

                    <li> <?php echo $notice1; ?></li>

                    <?php
                }
                ?>
            </ul>                       
        </fieldset>
    </form>
    <form method="post" action="">
        <fieldset>                     
            <p>
                <label>Tên: </label>
                <input type="text" name="data[name]" value="<?php echo $cus->name; ?>" class="vali"/>
            </p>
            <p>
                <label>Giới tính: </label>
                <input type="radio" name="data[gender]" value="1" <?php if ($cus->gender == 1) echo "checked"; ?>>Nam
                <input type="radio" name="data[gender]" value="0" <?php if ($cus->gender == 0) echo "checked"; ?>>Nữ
                <input type="radio" name="data[gender]" value="2" <?php if ($cus->gender == 2) echo "checked"; ?>>Không xác định
            </p>
            <p>
                <label>Số điện thoại: </label>
                <input type="text" name="data[phone]" value="<?php echo $cus->phone; ?>" class="vali"/>
            </p>
            <p>
                <label>Địa chỉ: </label>
                <input type="text" name="data[address]" value="<?php echo $cus->address; ?>" class="vali"/>
            </p>            
            <p>
                <label></label>
                <input type="submit" name="info" value="Thay đổi"/>                               
            </p>
        </fieldset>
    </form>
    <div class="clear-both"></div>
    <form method="post" action="">
        <fieldset>                      
            <p>
                <label>Mật khẩu cũ: </label>
                <input type="password" name="oldpass" value="" class="vali"/>
            </p>    
            <p>
                <label>Mật khẩu mới: </label>
                <input type="password" name="data[pass]" id="newpass" value="" class="vali"/>
            </p>
            <p>
                <label>Nhập lại mật khẩu: </label>
                <input type="password" name="passconf" value="" class="vali"/>
            </p>
            <p>
                <label></label>
                <input type="submit" name="change-pass" value="Thay đổi"/>                               
            </p>
        </fieldset>
    </form>
</article>